[#assign shiro=JspTaglibs["/WEB-INF/tld/shiro.tld"] /]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>${message("admin.main.title")}</title>
<link href="${base}/resources/admin/css/amazeui.css" rel="stylesheet" type="text/css" />
<link href="${base}/resources/admin/css/common.css" rel="stylesheet" type="text/css" />
<link href="${base}/resources/admin/css/main.css" rel="stylesheet" type="text/css" />
<style type="text/css">
*{
	font: 兰亭纤黑, 兰亭中黑, 兰亭特黑, 思源黑体, SYHT, "Microsoft Yahei", 微软雅黑, Arial, Helvetica, sans-serif;
}
html, body {
	width: 100%;
	height: 100%;
	overflow: hidden;
}
#data-table{
        background: -webkit-linear-gradient(left, #0066CC , #00AEAE); /* Safari 5.1 - 6.0 */
        background: -o-linear-gradient(right,  #0066CC , #00AEAE); /* Opera 11.1 - 12.0 */
        background: -moz-linear-gradient(right,  #0066CC , #00AEAE); /* Firefox 3.6 - 15 */
        background: linear-gradient(to right,  #0066CC , #00AEAE); /* 标准的语法（必须放在最后） */
}
#data-table.current , #data-table:hover{
    border-right: 5px solid #007979;
    color: #ffffff;
}
</style>

</head>
<body>
	<script type="text/javascript">
		if (self != top) {
			top.location = self.location;
        }
    </script>
	<table class="main">
		<tr>
			<th class="logo">
				<a href="main.htm">
					<img src="${base}/resources/asl/images/logo.png" />
				</a>
			</th>
			<th>
				<div id="nav" class="nav">
					<ul>
						[#list ["admin:member", "admin:memberRank", "admin:withdrawal" , "admin:bankcard",  "admin:review", "admin:consultation","admin:viewHistory","admin:feedback","admin:enterpriseService"] as permission]
							[@shiro.hasPermission name = permission]
								<li>
									<a href="#member"><i class="iconfont icon-huiyuan-copy"></i> ${message("admin.main.memberNav")}</a>
								</li>
								[#break /]
							[/@shiro.hasPermission]
						[/#list]
						[#list ["admin:course"] as permission]
							[@shiro.hasPermission name = permission]
                                <li>
                                    <a href="#course"><i class="iconfont icon-icon1"></i> 课程</a>
                                </li>
								[#break /]
							[/@shiro.hasPermission]
						[/#list]
						[#list ["admin:anchor","admin:anchorGroup","admin:live","admin:liveGift"] as permission]
							[@shiro.hasPermission name = permission]
                                <li>
                                    <a href="#live"><i class="iconfont icon-zhibo"></i> 直播</a>
                                </li>
								[#break /]
							[/@shiro.hasPermission]
						[/#list]
						[#list ["admin:question"] as permission]
							[@shiro.hasPermission name = permission]
                                <li>
                                    <a href="#question"><i class="iconfont icon-wenda"></i> 易问易答</a>
                                </li>
								[#break /]
							[/@shiro.hasPermission]
						[/#list]
						[#list ["admin:essay"] as permission]
							[@shiro.hasPermission name = permission]
                                <li>
                                    <a href="#essay"><i class="iconfont icon-wenzhang"></i> 文章</a>
                                </li>
								[#break /]
							[/@shiro.hasPermission]
						[/#list]

						[#list ["admin:navigation", "admin:article", "admin:articleCategory", "admin:friendLink", "admin:adPosition", "admin:ad", "admin:template", "admin:cache", "admin:static", "admin:index"] as permission]
							[@shiro.hasPermission name = permission]
								<li>
									<a href="#content"><i class="iconfont icon-guanggao"></i> ${message("admin.main.contentNav")}</a>
								</li>
								[#break /]
							[/@shiro.hasPermission]
						[/#list]

						[#list [ "admin:area", "admin:paymentMethod", "admin:shippingMethod", "admin:deliveryCorp", "admin:paymentPlugin", "admin:storagePlugin", "admin:admin", "admin:role", "admin:message", "admin:log" , "admin:platform"] as permission]
							[@shiro.hasPermission name = permission]
								<li>
									<a href="#system"><i class="iconfont icon-canshu"></i> ${message("admin.main.systemNav")}</a>
								</li>
								[#break /]
							[/@shiro.hasPermission]
						[/#list]

						<li>
                            <a></a>
						</li>
					</ul>
				</div>
				<div class="link">
                    <i class="iconfont icon-huiyuan"></i> <a class="am-monospace">[@shiro.principal /]</a>
					<a href="../profile/edit.htm" class="am-btn am-btn-warning am-radius am-btn-sm" target="iframe">${message("admin.main.profile")}</a>
					<a href="../logout.jsp" class="am-btn am-btn-danger am-radius am-btn-sm" target="_top">${message("admin.main.logout")}</a>
				</div>
			</th>
		</tr>
		<tr>
			<td id="menu" class="menu">

				<dl id="member" class="default">
					<dt>${message("admin.main.memberGroup")}</dt>
					[@shiro.hasPermission name="admin:member"]
						<dd>
							<a href="../member/list.htm" target="iframe"><i class="iconfont icon-huiyuan-copy"></i> ${message("admin.main.member")}</a>
						</dd>
					[/@shiro.hasPermission]

					[@shiro.hasPermission name="admin:bankcard"]
						<dd>
							<a href="../bank_card/list.htm" target="iframe"><i class="iconfont icon-guanggao"></i> 银行卡管理</a>
						</dd>
					[/@shiro.hasPermission]
					[@shiro.hasPermission name="admin:withdrawal"]
						<dd>
							<a href="../withdrawal/list.htm" target="iframe"><i class="iconfont icon-guanggao"></i> 提现管理</a>
						</dd>
					[/@shiro.hasPermission]
					[@shiro.hasPermission name="admin:review"]
						<dd>
							<a href="../review/list.htm" target="iframe"><i class="iconfont icon-wodezixun"></i> 评价管理</a>
						</dd>
					[/@shiro.hasPermission]

					[@shiro.hasPermission name="admin:financialRecord"]
						<dd>
							<a href="../financial_record/list.htm" target="iframe"><i class="iconfont icon-unie64a"></i> 收入/支出记录</a>
						</dd>
					[/@shiro.hasPermission]

					[@shiro.hasPermission name="admin:charge"]
                    	<dd>
                        	<a href="../trade/list.htm" target="iframe"><i class="iconfont icon-unie64a"></i> 充值记录</a>
                    	</dd>
					[/@shiro.hasPermission]

					[@shiro.hasPermission name="admin:feedback"]
						<dd>
							<a href="../feedback/list.htm" target="iframe"><i class="iconfont icon-daohang2"></i> 反馈信息</a>
						</dd>
					[/@shiro.hasPermission]
					[@shiro.hasPermission name="admin:message"]
						<dd>
							<a href="../message/list.htm" target="iframe"><i class="iconfont icon-order"></i> 消息管理</a>
						</dd>
					[/@shiro.hasPermission]
					[@shiro.hasPermission name="admin:letter"]
                    	<dd>
                        	<a href="../letter/list.htm" target="iframe"><i class="iconfont icon-order"></i> 私信管理</a>
                    	</dd>
					[/@shiro.hasPermission]
					[@shiro.hasPermission name="admin:robot"]
                    	<dd>
                       	 <a href="../robot/list.htm" target="iframe"><i class="iconfont icon-jiqir"></i> 机器人管理</a>
                   	 	</dd>
					[/@shiro.hasPermission]
				</dl>
				<dl id="question" >
                        <dt>易问易答</dt>
					[@shiro.hasPermission name="admin:question"]
                        <dd>
                            <a href="../question/list.htm" target="iframe"><i class="iconfont icon-tiwen"></i> 提问</a>
                        </dd>
					[/@shiro.hasPermission]
					[@shiro.hasPermission name="admin:answer"]
						<dd>
							<a href="../answer/list.htm" target="iframe"><i class="iconfont icon-wolaihuida"></i> 回答</a>
						</dd>
					[/@shiro.hasPermission]
					[@shiro.hasPermission name="admin:YiYuanTrade"]
						<dd>
							<a href="../yiyuan_trade/list.htm" target="iframe"><i class="iconfont icon-icon-test"></i> 一元账单</a>
						</dd>
					[/@shiro.hasPermission]
				</dl>
				<dl id="essay" >
					<dt>文章管理</dt>
				[@shiro.hasPermission name="admin:essay"]
					<dd>
						<a href="../essay/list.htm" target="iframe"><i class="iconfont icon-wenzhang"></i> 文章</a>
					</dd>
				[/@shiro.hasPermission]
				</dl>
                <dl id="live">
                    <dt>直播管理</dt>
					[@shiro.hasPermission name="admin:live"]
						<dd>
							<a href="../live/list.htm" target="iframe"><i class="iconfont icon-shuxing1"></i> 直播历史</a>
						</dd>
					[/@shiro.hasPermission]
					[@shiro.hasPermission name="admin:liveGift"]
						<dd>
							<a href="../live_gift/list.htm" target="iframe"><i class="iconfont icon-shangpin"></i> 直播礼物</a>
						</dd>
					[/@shiro.hasPermission]
					[@shiro.hasPermission name="admin:liveGiftTrade"]
						<dd>
							<a href="../live_gift_trade/list.htm" target="iframe"><i class="iconfont icon-order"></i> 礼物订单</a>
						</dd>
					[/@shiro.hasPermission]
                </dl>
				<dl id="content">
					<dt>${message("admin.main.contentGroup")}</dt>
					[@shiro.hasPermission name="admin:commonContent"]
						<dd>
							<a href="../common_content/edit.htm" target="iframe"><i class="iconfont icon-canshu"></i> 通用内容</a>
						</dd>
					[/@shiro.hasPermission]
					[@shiro.hasPermission name="admin:commonContent"]
						<dd>
							<a href="../jie_shao/list.htm" target="iframe"><i class="iconfont icon-xitong"></i> 系统介绍</a>
						</dd>
					[/@shiro.hasPermission]
					[@shiro.hasPermission name="admin:file"]
						<dd>
							<a href="../file/list.htm" target="iframe"><i class="iconfont icon-tupian"></i> ${message("admin.main.file")}</a>
						</dd>
					[/@shiro.hasPermission]
					[@shiro.hasPermission name="admin:friendLink"]
						<dd>
							<a href="../friend_link/list.htm" target="iframe"><i class="iconfont icon-daohang2"></i> ${message("admin.main.friendLink")}</a>
						</dd>
					[/@shiro.hasPermission]
					[@shiro.hasPermission name="admin:adPosition"]
						<dd>
							<a href="../ad_position/list.htm" target="iframe"><i class="iconfont icon-globe"></i> ${message("admin.main.adPosition")}</a>
						</dd>
					[/@shiro.hasPermission]
					[@shiro.hasPermission name="admin:ad"]
						<dd>
							<a href="../ad/list.htm" target="iframe"><i class="iconfont icon-guanggao1"></i> ${message("admin.main.ad")}</a>
						</dd>
					[/@shiro.hasPermission]

					[@shiro.hasPermission name="admin:cache"]
						<dd>
							<a href="../cache/clear.htm" target="iframe"><i class="iconfont icon-canshu"></i> ${message("admin.main.cache")}</a>
						</dd>
					[/@shiro.hasPermission]
					[@shiro.hasPermission name="admin:static"]
						<dd>
							<a href="../static/build.htm" target="iframe"><i class="iconfont icon-canshu"></i> ${message("admin.main.static")}</a>
						</dd>
					[/@shiro.hasPermission]
					[@shiro.hasPermission name="admin:index"]
						<dd>
							<a href="../index/build.htm" target="iframe"><i class="iconfont icon-canshu"></i> ${message("admin.main.index")}</a>
						</dd>
					[/@shiro.hasPermission]
				</dl>
				<dl id="statistics">
					<dt>${message("admin.main.statisticsGroup")}</dt>
					[@shiro.hasPermission name="admin:salesRanking"]
						<dd>
							<a href="../sales_ranking/list.htm" target="iframe"><i class="iconfont icon-guanggao"></i> ${message("admin.main.salesRanking")}</a>
						</dd>
					[/@shiro.hasPermission]
					[@shiro.hasPermission name="admin:purchaseRanking"]
						<dd>
							<a href="../purchase_ranking/list.htm" target="iframe"><i class="iconfont icon-guanggao"></i> ${message("admin.main.purchaseRanking")}</a>
						</dd>
					[/@shiro.hasPermission]
						[@shiro.hasPermission name="admin:deposit"]
						<dd>
							<a href="../deposit/list.htm" target="iframe"><i class="iconfont icon-guanggao"></i> ${message("admin.main.deposit")}</a>
						</dd>
					[/@shiro.hasPermission]
				</dl>
				<dl id="system">
					<dt>${message("admin.main.systemGroup")}</dt>
					[@shiro.hasPermission name="admin:category"]
						<dd>
							<a href="../category/list.htm" target="iframe"><i class="iconfont icon-fenlei"></i> 总分类</a>
						</dd>
					[/@shiro.hasPermission]
					[@shiro.hasPermission name="admin:setting"]
						<dd>
							<a href="../data/index.htm" id="data-table" target="iframe"><i class="iconfont icon-fcstubiao19"></i> 数据统计</a>
						</dd>
					[/@shiro.hasPermission]
					[@shiro.hasPermission name="admin:setting"]
						<dd>
							<a href="../global_config/edit.htm" target="iframe"><i class="iconfont icon-daohang2"></i> 全局设定</a>
						</dd>
					[/@shiro.hasPermission]

					[@shiro.hasPermission name="admin:area"]
						<dd>
							<a href="../area/list.htm" target="iframe"><i class="iconfont icon-diqiu"></i> ${message("admin.main.area")}</a>
						</dd>
					[/@shiro.hasPermission]

					[@shiro.hasPermission name="admin:storagePlugin"]
						<dd>
							<a href="../storage_plugin/list.htm" target="iframe"><i class="iconfont icon-guanggao"></i> ${message("admin.main.storagePlugin")}</a>
						</dd>
					[/@shiro.hasPermission]
					[@shiro.hasPermission name="admin:admin"]
						<dd>
							<a href="../admin/list.htm" target="iframe"><i class="iconfont icon-huiyuan"></i> ${message("admin.main.admin")}</a>
						</dd>
					[/@shiro.hasPermission]
					[@shiro.hasPermission name="admin:role"]
						<dd>
							<a href="../role/list.htm" target="iframe"><i class="iconfont icon-jiaoseguanli"></i> ${message("admin.main.role")}</a>
						</dd>
					[/@shiro.hasPermission]
					[@shiro.hasPermission name="admin:log"]
						<dd>
							<a href="../log/list.htm" target="iframe"><i class="iconfont icon-guanggao"></i> ${message("admin.main.log")}</a>
						</dd>
					[/@shiro.hasPermission]
				</dl>
				<dl id="course">
					<dt>${message("admin.main.statisticsGroup")}</dt>
				[@shiro.hasPermission name="admin:course"]
					<dd>
						<a href="../course/list.htm" target="iframe"><i class="iconfont icon-zhuanlan_jiemu"></i> 课程</a>
					</dd>
				[/@shiro.hasPermission]
				[@shiro.hasPermission name="admin:record"]
                    <dd>
                        <a href="../record/list.htm" target="iframe"><i class="iconfont icon-shenqing"></i> 申请删除</a>
                    </dd>
				[/@shiro.hasPermission]
				[@shiro.hasPermission name="admin:courseTrade"]
                    <dd>
                        <a href="../course_trade/list.htm" target="iframe"><i class="iconfont icon-order"></i> 报名订单</a>
                    </dd>
				[/@shiro.hasPermission]
				</dl>

			</td>
			<td>
				<iframe id="iframe" name="iframe" src="index.htm" frameborder="0"></iframe>
			</td>
		</tr>
	</table>
</body>
<script type="text/javascript" src="${base}/resources/admin/js/jquery.js"></script>
<script type="text/javascript">
    $().ready(function() {

        var $nav = $("#nav a:not(:last)");
        var $menu = $("#menu dl");
        var $menuItem = $("#menu a");

        $nav.click(function() {
            var $this = $(this);
            $nav.removeClass("current");
            $this.addClass("current");
            var $currentMenu = $($this.attr("href"));
            $menu.hide();
            $currentMenu.show();
            return false;
        });

        $menuItem.click(function() {
            var $this = $(this);
            $menuItem.removeClass("current");
            $this.addClass("current");
        });

        init();

        //订单数清零
        function init() {
            $.ajax({
                url:"/app/m/order/clear.htm",
                type:"GET",
                success: function (data) {
                    if ( data.code==0 && data.data!=0 ){
                    }
                }
            })
        }

    });
</script>
</html>